import {RouterModule, Routes} from '@angular/router';
import {NgModule} from '@angular/core';
import {MemPointComponent} from './mem-point.component';

const routes: Routes = [
    {
        path: '', component: MemPointComponent,
        children: [
            {path: '', redirectTo: 'list', pathMatch: 'full'},
            {path: 'add', loadChildren: './add-mem-point/add-mem-point.module#AddMemPointModule'},
            {path: 'list', loadChildren: './list-mem-point/list-mem-point.module#ListMemPointModule'},
            {path: 'modify', loadChildren: './modify-mem-point/modify-mem-point.module#ModifyMemPointModule'},
            {path: 'report', loadChildren: './report-mem-point/report-mem-point.module#ReportMemPointModule'},
        ]
    }
];

@NgModule({
    imports: [RouterModule.forChild(routes)],
    exports: [RouterModule]
})
export class MemPointRoutingModule {
}
